<template>
  <div class='coupon-item'>
    <div class='coupon-item-sum'>
      <div class='coupon-item-limit'>
        <span>{{data.Manjian}}</span>
      </div>
    </div>
    <div class='coupon-item-info'>
      <div class='coupon-item-name'>{{data.CouponName}}</div>
      <div class='coupon-item-desc'>{{data.CouponDescription}}</div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    data: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>
<style lang="less" scoped>
.coupon-item {
  display: flex;
  align-items: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 10px;
  margin: 0 20px;
}

.coupon-item-sum {
  width: 350px;
  text-align: center;
  font-size: 32px;
  color: #e51c24;
}

.coupon-item-info {
  width: calc(100% - 200px);
  margin-left: 20px;
}

.coupon-item-name {
  font-size: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 42px;
  margin-bottom: 6px;
  width: 200px;
}
.coupon-item-desc{
  font-size: 24px;
  width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>
